﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BA2009.Entities;

namespace BA2009.Services
{
    public interface IService<T>
        where T:EntityBase
    {
        IList<T> FindAll();
        T GetById(int id);

        int Add(T item, params object[] maps);
        bool Delete(T item);

        int Update(T item, params object[] maps);
    }
}
